import './styles/main.css';

import { createPinia } from 'pinia';
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate';
import { createApp } from 'vue';
import App from './App.vue';
import { setupBaiduTongji } from './plugins/baidu-tongji.ts';
import router from './router';

const app = createApp(App);

const pinia = createPinia();
pinia.use(piniaPluginPersistedstate);

app.use(pinia);
app.use(router);

if (import.meta.env.PROD) {
  setupBaiduTongji();
}

app.mount('#app');
